<%@ page session="false" %>
<%@ include file="/common/taglibs.jsp"%>
<%@ page language="java" pageEncoding="UTF-8"%>
<pg:first export="url" unless="current">
   <c:set var="pCurl">  ${fn:replace(url, "&", "&amp;")}</c:set>
  <a href="<c:url value="${pCurl}"/>">首页</a>
</pg:first>
<pg:prev export="url">
  <c:set var="pCurl">  ${fn:replace(url, "&", "&amp;")}</c:set>
  <a href="<c:url value="${pCurl}"/>&amp;pageNo=${currentPageNumber-1}">前一页</a>
</pg:prev>
<%--<pg:pages export="url,pageNumber">--%>
     <%--<c:set var="pCurl">${fn:replace(url, "&", "&amp;")}</c:set>--%>
     <%--<c:choose>--%>
        <%--<c:when test="${pageNumber == currentPageNumber}">--%>
            <%--${pageNumber}&nbsp;--%>
        <%--</c:when>--%>
        <%--<c:otherwise>--%>
            <%--<a href="<c:url value="${pCurl}"/>&amp;pageNo=${pageNumber}" >${pageNumber}</a>--%>
        <%--</c:otherwise>--%>
    <%--</c:choose>--%>
<%--</pg:pages>--%>
<pg:next export="url">
     <c:set var="pCurl">${fn:replace(url, "&", "&amp;")}</c:set>
  <a href="<c:url value="${pCurl}"/>&amp;pageNo=${currentPageNumber+1}">下一页</a>
</pg:next>
<pg:last export="pageUrl lastItem pageNumber">
  <c:set var="pCurl">${fn:replace(pageUrl, "&", "&amp;")}</c:set>
  <a href="<c:url value="${pCurl}&amp;pageNo=${pageNumber}"/>">尾页</a>
</pg:last>

